#pragma once
#include "FioriMenuNode.h"
#include <vector>
#include <string>
using std::vector;
using std::wstring;

class FioriMenuTree
{
public:
	FioriMenuTree(void);
	~FioriMenuTree(void);
	/*
	 * gets the tree nodes
	 */
	vector<FioriMenuNode>& getNodes();
	/*
	 * returns the JSON formatted string represents the current menu data
	 */
	wstring toString() const;
	/*
	 * gets the changed flag
	 */
	bool isChanged();
	/*
	 * sets the changed flag
	 */
	void setChanged(bool flag);

private:
	vector<FioriMenuNode> m_nodes;
	bool m_changed;
};

